package com.link.base.tencent.corpwx.access.service;

import com.alibaba.fastjson.JSONObject;
import com.link.base.tencent.corpwx.access.model.MsgBasic;
import com.link.core.basic.service.BasicService;

import javax.servlet.http.HttpServletRequest;

/**
 * 消息事件服务
 *
 * @author 欧阳振强
 * @date 2019/1/2
 */
public interface CorpWxAccessService extends BasicService<MsgBasic> {

    /**
     * 解析输入流
     *
     * @author 欧阳振强
     * @date 2019/1/2
     * @param request 请求
     * @param corpId 企业微信Id
     * @param token 用于生成签名的token
     * @param aesKey 用于消息体的加密，是AES密钥的Base64编码
     */
    JSONObject parseEventXml(HttpServletRequest request, String corpId, String token, String aesKey) throws Exception;
}
